Using the Unity Cache Server – The Knights of Unity

您所在的位置:网站首页 unity cache server open source Using the Unity Cache Server – The Knights of Unity

Using the Unity Cache Server – The Knights of Unity

2023-03-25 18:50| 来源: 网络整理| 查看: 265

Unity Cache Server

 

If you’re聽working on a medium or big project then you may聽get into a situation when pulling your project from the repository (or switching to a different branch) triggers聽a time-consuming process of asset importing. 聽It can be even more painful if you’re targeting at mobile devices like Android and iOS. For instance, on聽iOS textures or lightmaps, the import聽may take even several hours! It’s a lot of wasted time because you cannot do anything during that time!

importing assets

Cache Server to the rescue!

The Unity editor, in order to preserve reasonable disk space, removes the imported asset data聽from the project’s Library聽folder聽for those assets that have been deleted. It also removes all assets data for the assets that need to be reimported when switching the target platform.聽This problem can be easily solved using the Cache Server!

The Cache Server is a separate piece of software that can be installed locally (if you’re working alone) or on a聽remote server. It collects all the imported asset data from the Library folder and stores all of them until the upper limit is reached (by default it is 50 GB).

Pre-requirements and installation

The Cache Server can be used only by聽Team License owners (Unity 4) or Unity 5 Professional users (Team License included).

To install the Cache Server, download it from the Unity homepage. The links are frequently updated (Cache Server version changes), so the best is to go there and download the latest version for yourself.

cache server download

After downloading the zip file, unpack聽it wherever you like to store the cache (locally or on a remote server). Then all you have to do is to double-click on聽RunWin.cmd file if you’re running it on Windows or open the terminal and execute聽./RunLinux.sh on Linux and Mac OS X hosts.

cache server files

Then you have to configure the聽Cache Server connection for your聽Unity editor. If there’s more people working on the same project and they have the access to the same server machine that the聽Cache Server is running on, they should follow this聽step too.

In the Unity go to the聽Preferences window. Then in the Cache Server section enable the聽Use Cache Server option and type in your server ip or hostname.

CacheServerEnabled

From now on, importing assets will first check for availability in our newly installed聽Cache Server, and then聽download it if present. Be aware that an聽asset聽will be present on the Cache Server if it was imported at least once after聽the聽Cache Server聽was enabled. Therefore, it may take some time before you notice the difference.

using cache server



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3